<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel='stylesheet' href='../../../public/stylesheets/index.css'/>
</head>
<body>
<section>
    <div class="sectionMain">
        <div class="bgGray">
            <span style="color:#ffffff">选择类型:</span>
            <select id="tag" onchange="model.screen({tag:$('#tag').val()})">
                <option value ="all">所有</option>
                <option value ="0">倾诉热线</option>
                <option value ="1">心理咨询</option>
                <option value ="2">心理督导</option>
                <option value ="3">线下活动</option>
                <option value ="5">书籍</option>
                <option value ="6">视频</option>
                <option value ="7">个人会员会费</option>
                <option value ="8">单位会员会费</option>
            </select>
        </div>
        <div class="biaomingTable">
            <span id="titleName" class="TableName"></span>
        </div>
        <div class="sectionMainTable"></div>
        <div class="center">
            <ul class="pagination">

            </ul>
        </div>
    </div>
</section>
</body>
<script src="../../js/script_min.js"></script>
<script src="../../js/util.js"></script>
<script src="../../js/sheet.js"></script>
<script>
    class bill_app extends sheet{
        screen(args){
            if(args){
                this.postData = Object.assign(this.postData,args);
            }
            this.init(0).then(res=>{this.setTitle()});
        };
        setTitle(){
            $('#titleName').text('每月账单(' + this.storage.count + ')');
        };
    }
    let model = new bill_app({
        api:`backStage-bill-month`,
        postData:{
            tag:$('#tag').val(),
        },
    });
    model.init(0).then(res=>{model.setTitle()});
    $("#endTime").val(model.getEndTime());
</script>
</html>